﻿namespace Cos.Module.Form.NHibernate.Test
{
    using Cos.Core.NHibernate;
    using Cos.Core.NHibernate.Tests;

    using NUnit.Framework;

    [TestFixture]
    public class FormCultureDataModelFixture : ModuleFixtureBase
    {
        [Test]
        public void CanMapFormCultureDataModel()
        {
            new PersistenceSpecification<FormCultureDataModel>(Session)
                .CheckProperty(x => x.CompletedText, "completed text")
                .CheckProperty(x => x.CompletedTextLive, "completed text live")
                //.CheckReference(x => x.CultureCode, this.Culture.Id)
                .CheckProperty(x => x.EmailSubject, "email subject")
                .CheckProperty(x => x.EmailSubjectLive, "email subject live")
                //.CheckReference(x => x.FormId, this.Form.Id)
                .CheckProperty(x => x.Status, "Approved")
                .CheckProperty(x => x.IsVisibleLive, true)
                .CheckProperty(x => x.IsVisiblePreview, true)
                .VerifyTheMappings();
        }
    }
}
